"use strict";
/**
 * @author zhaojiuyi
 * @date 2022/6/2-10:50
 * @version 1.0.0
 */
// 使用 Mock
const Mock = require('mockjs')
// const id = Mock.mock("@id"); // 得到随机的id字符串
let obj = Mock.mock({
  id: "@id()", // 得到随机的id,对象
  username: "@cname()", // 随机生成中文名字
  date: "@date()", // 随机生成日期
  avatar: "@image('200x100', '#00405d', '#FFF', 'Mock.js')",
  // => "http://dummyimage.com/200x100/00405d/FFF&text=Mock.js"
  // description: "@paragraph()",// 描述
  ip: "@ip()",// IP地址
  email: "@email()" // email

})
// 输出结果
console.log(obj)
